#include <iostream>
#include <Windows.h>
#include "../LightingRender/LightingRender.h"

void main() {
	using namespace std;

	cout << MathUtils::intHashXY(100, 251) << endl;
	cout << MathUtils::intHashXY(100, 252) << endl;
	cout << MathUtils::intHashXY(100, 251) << endl;

	double result = 0.0;
	long long start = GetTickCount64();

	//for (double x = -10; x <= 10; x += 0.0000001)
	//	result += /*cos(x);*/ MathUtils::fastCos(x);

	Vector3 v;
	for (int x = 0; x < 100000000; x++) {
		randomPointInUnitSphere(v);
	}

	cout << "Time Used:" << GetTickCount64() - start << "ms" << endl;
	cout << "Result:" << v.length() << endl;

	system("pause");
}